{template 'common/header'}
{template 'common/slide'}
<style>
	body{
	font:{$_W['styles']['fontsize']} {$_W['styles']['fontfamily']};
	color:{$_W['styles']['fontcolor']};
	padding:0;
	margin:0;
	background-image:url('{if !empty($_W['styles']['indexbgimg'])}{$_W['styles']['indexbgimg']}{/if}');
	background-size:cover;
	background-color:{if empty($_W['styles']['indexbgcolor'])}#FFF{else}{$_W['styles']['indexbgcolor']}{/if};
	{$_W['styles']['indexbgextra']}
	}
	a{color:{$_W['styles']['linkcolor']}; text-decoration:none;}
	{$_W['styles']['css']}
	.box{margin:2.9% 2.8%;}
	.box .box-item{display:block; height:3.6em; overflow:hidden; line-height:3.6em; margin-bottom:0.7%; border-radius:0.25em; text-decoration:none;color:#fff;}
	.box .box-item i{float:left; text-align:center; height:1.36em; min-width:35px; margin:2.8% 7.7% 0 2.5%; font-size:35px; vertical-align:middle; color:#ffffff; overflow:hidden;}
	.box .box-item .next{color:#fff; float:right; display:inline-block; margin:18px 0;}
	.box .box-item span{color:{$_W['styles']['fontnavcolor']};display:inline-block; overflow:hidden; width:50%;}
</style>
<div class="box clearfix">
	{php $num = 0;}
	{loop $navs $nav}
	{php if($num == 0) $bg = '#a3ec8d';}
	{php if($num == 1) $bg = '#58b5e1';}
	{php if($num == 2) $bg = '#fac448';}
	{php if($num == 3) $bg = '#fc6668';}
	{php if($num == 4) $bg = '#68cf8a';}
	{php if($num == 5) $bg = '#667cd0';}
	<a href="{$nav['url']}" class="box-item clearfix" style="background:{$bg};">
		{if !empty($nav['icon'])}
		<i style="background:url({$_W['attachurl']}{$nav['icon']}) no-repeat;background-size:cover; width:36px; height:36px;" class="icon"></i>
		{else}
		<i class="fa {$nav['css']['icon']['icon']} icon" style="{$nav['css']['icon']['style']}"></i>
		{/if}
		<span style="{$nav['css']['name']}" title="{$nav['name']}">{$nav['name']}</span>
		<i class="fa fa-chevron-right next" style="font-size:11px;"></i>
	</a>
	{php $num++; if($num > 5) $num = 0;}
	{/loop}
</div>
{template 'common/footer'}